<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/head::head"/>
<!--定时任务日志-->
<body>
<div th:replace="base/load::load"/>
<div id="table-tool">
    <a id="btn-add" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="onOpenQueryDialog()">查询</a>
    <a id="btn-refresh" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-refresh',plain:true" onclick="onRefresh()">刷新</a>
</div>
<table id="table" class="easyui-datagrid" data-options="url:'page',method:'get',pagination:true,pageSize:30,pageList:[20,30,40,50],fit:true,singleSelect:false,rownumbers:true,toolbar:'#table-tool'">
    <thead>
    <tr>
        <th data-options="field:'id',checkbox:true"></th>
        <th data-options="field:'name',width:100">任务名称</th>
        <th data-options="field:'bean',width:100">bean名称</th>
        <th data-options="field:'method',width:100">方法名称</th>
        <th data-options="field:'params',width:100">方法参数</th>
        <th data-options="field:'cron',width:100">Cron表达式</th>
        <th data-options="field:'status',width:100">状态</th>
        <th data-options="field:'times',width:100">耗时毫秒</th>
        <th data-options="field:'createTime',width:100">添加时间</th>
        <th data-options="field:'comment',width:100">备注</th>
    </tr>
    </thead>
</table>
<!--弹出框-->
<div id="dialog-query" class="easyui-dialog uq_dialog" data-options="title:'操作',modal:true,closed:true,buttons:'#dialog-query-tool'">
    <form id="form-query" method="post">
        <table>
            <tr>
                <td>任务名称:</td>
                <td><input name="name" class="easyui-textbox" style="width: 200px" data-options="validType:'length[1,64]'"/></td>
                <td>状态:</td>
                <td>
                    <select name="status" class="easyui-combobox" style="width: 200px" data-options="value:'',panelHeight:'auto'">
                        <option value="">全部</option>
                        <option value="0">成功</option>
                        <option value="1">失败</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>bean名称:</td>
                <td><input name="bean" class="easyui-textbox" style="width: 200px" data-options="validType:'length[1,64]',prompt:'Spring bean 名称'"/></td>
                <td>方法名称:</td>
                <td><input name="method" class="easyui-textbox" style="width: 200px" data-options="validType:'length[1,64]'"/></td>
            </tr>
            <tr>
                <td>开始时间:</td>
                <td><input name="createTimeStart" class="easyui-datebox" style="width: 200px" data-options="prompt:'开始时间'"/></td>
                <td>结束时间:</td>
                <td><input name="createTimeEnd" class="easyui-datebox" style="width: 200px" data-options="prompt:'结束时间'"/></td>
            </tr>
        </table>
    </form>
</div>
<div id="dialog-query-tool">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="onQuery()">查询</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload'" onclick="onResetQuery()">重置</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-close'" onclick="javascript:$('#dialog-query').dialog('close')">关闭</a>
</div>
<script type="text/javascript" th:src="@{/utils/System.js}"></script>
</body>
</html>

